package com.twetec.cms.model.vo.information;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.twetec.cms.model.vo.base.BaseVO;
import io.swagger.annotations.ApiModelProperty;

public class CoursewareVO extends BaseVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id", example = "12345646546")
    private Long id;

    @ApiModelProperty(value = "附件名称", example = "视频1")
    private String name;

    @ApiModelProperty(value = "附件类型 图片:PICTURE 文件:FILE 链接:LINK", example = "PICTURE")
    private String coursewareType;

    @ApiModelProperty(value = "文件名", example = "4864")
    private String fileName;

    @ApiModelProperty(value = "文件后缀", example = "mp4,pptx")
    private String fileExt;

    @ApiModelProperty(value = "文件大小", example = "1.11M")
    private String fileSize;

    @ApiModelProperty(value = "文件地址", example = "http://www.baidu.com")
    private String fileUrl;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCoursewareType() {
        return coursewareType;
    }

    public void setCoursewareType(String coursewareType) {
        this.coursewareType = coursewareType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        return "CoursewareVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", coursewareType='" + coursewareType + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileExt='" + fileExt + '\'' +
                ", fileSize='" + fileSize + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                '}';
    }
}
